#include <stdio.h>

int main()
{
	char var;
	int lc = 0, uc = 0, dc = 0;

	do {
		scanf("%c", &var);


		if (var >= 'a' && var <= 'z') {
			lc++;
		} else if (var >= 'A' && var <= 'Z') {
			uc++;
		} else if (var >= '0' && var <= '9') {
			dc++;
		}
	} while (var != '\n');

	printf("大写字母：%d\n", uc);
	printf("小写字母：%d\n", lc);
	printf("数字：%d\n", dc);

	return 0;
}
